package com.wise.summer.v1.cms.content.article;

import com.wise.entities.content.Article;
import com.wise.framework.annotations.PreAuthorize;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.summer.BasicSummer;
import lombok.Getter;
import lombok.Setter;
import org.junit.internal.runners.ErrorReportingRunner;

import static com.wise.model.content.ContentErrMsgs.Err_001600250006;
import static com.wise.model.content.ContentErrMsgs.Err_001600250023;

@Publish
@Getter
@Setter
@PreAuthorize(name = "文章审核")
public class JudgeArticle extends BasicSummer<Article> {

    @NotBlank(msg = Err_001600250006)
    private String id;

    @NotNull(msg = Err_001600250023)
    private Integer state;
}
